package cn.zhaoyuening.schoolmates.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zhaoyuening.schoolmates.service.FileResourceService;
import cn.zhaoyuening.schoolmates.utils.FastFdsClientUtils;

@Service
public class FileResourceServiceImpl implements FileResourceService {
	@Autowired
	private FastFdsClientUtils fastFdsClientUtils;

	@Override
	public String uploadFile(byte[] fileData, String fileName) {
		String url = fastFdsClientUtils.uploadFile(fileData, fileName);
		return url;
	}
	

}
